package com.kun.gulimall.member.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kun.gulimall.member.domain.GrowthChangeHistory;
import com.kun.gulimall.member.service.GrowthChangeHistoryService;
import com.kun.gulimall.member.mapper.GrowthChangeHistoryMapper;
import com.kun.gulimall.util.PageUtils;
import com.kun.gulimall.util.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class GrowthChangeHistoryServiceImpl extends ServiceImpl<GrowthChangeHistoryMapper,
        GrowthChangeHistory> implements GrowthChangeHistoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GrowthChangeHistory> page = this.page(new Query<GrowthChangeHistory>().getPage(params));
        return new PageUtils(page);
    }
}
